<template>
  <li class="dropdown-item" :class="{'is-disable': disable}">
    <slot></slot>
  </li>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  props: {
    disable: {
      type: Boolean,
      default: false
    }
  }
})
</script>

<style>
.dropdown-item.is-disable * {
  color: #6c757d;
  pointer-events: none;
  background-color: transparent;
}

</style>
